C puzzles

26 03 2007

Some interesting C problems 🙂
It’s on Gowri Kumar’s page.

Here’s one of the problem:


The following C program segfaults of IA-64, but works fine on IA-32.

int main()
{
	int* p;
	p = (int*)malloc(sizeof(int));
	*p = 10;
	return 0;
}

Why does it happen so?


Check out the full article here:
http://www.gowrikumar.com/c/index.html


Actions

Information

3 responses

28 04 2007
k's avatar k

i

30 05 2007
pimples treament's avatar pimples treament

A refereshing change to find a website with useful information

12 11 2007
markypizz's avatar markypizz

hi

Leave a comment




Design a site like this with WordPress.com
Get started